#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDate>
#include <QDateTime>
#include "check.h"

#include <QThread>

#include <QDebug>
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
//    threads = new QThread[5];

//    for(int i = 0;i < 5;++i){
//        Check* obj = new Check;
//        obj->num = i;
//        obj->moveToThread(&threads[i]);
//        connect(this,SIGNAL(test()),obj,SLOT(test()));
//        threads[i].start();
//    }
//    emit test();
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
    QDateTime dt(QDate::currentDate());
    qDebug() << dt;
    qDebug() << dt.toTime_t();
}
